//
//  TileMap.h
//  MapEdit
//
//  Created by Steven Canfield on 13/06/07.
//  Copyright 2007 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "NSMutableDataAdditions.h"

@interface TileMap : NSObject {
	u_int16_t * _tiles;
	NSSize		_size;
	u_int8_t	_tileset;
}

- (id)initWithData:(NSData *)data size:(NSSize)size;
- (NSData * )serializedMap;
- (int)width;
- (int)height;
- (u_int16_t)tileAtX:(int)x Y:(int)y;
@end
